<?php
	
	require_once('inc.config.php');
	
	if(!isLogin()){
		header("Location:login.php?msg=1");
		exit;
	}

	$action = $_GET["action"];
	if($action=="add"){
		$result = $myCollection->addOneCollection();
	}else if($action=="delete"){
		$result = $myCollection->deleteOneCollection();
		if(__user_prop__==0){
			header("Location:agent_admin_collection.php");
			exit;
		}else{
			header("Location:user_admin_collection.php");
			exit;
		}
	}

	echo $result;
?>